package beans;

import java.io.Serializable;

public class StudentsubjectPK
  implements Serializable
{
  public Long studentid;
  public Long subjectid;

  public StudentsubjectPK()
  {
  }

  public StudentsubjectPK(Long studentid, Long subjectid)
  {
    this.studentid = studentid;
    this.subjectid = subjectid;
  }

  public boolean equals(Object other)
  {
    if (other instanceof StudentsubjectPK)
    {
      final StudentsubjectPK otherStudentsubjectPK = (StudentsubjectPK) other;
      final boolean areEqual =
        (otherStudentsubjectPK.studentid.equals(studentid) && otherStudentsubjectPK.subjectid.equals(subjectid));
      return areEqual;
    }
    return false;
  }

  public int hashCode()
  {
    return super.hashCode();
  }
}
